import request from '@/utils/request';

export function billList(data) {
    return request({
      url: '/xhy/admin/bill/list',
      method: 'post',
      data
    })
}
export function getParam() {
  return request({
    url: '/xhy/admin/bill/param',
    method: 'post',
  })
}
export function modifyRate(data) {
  return request({
    url: '/xhy/admin/bill/rate',
    method: 'post',
    data
  })
}
export function modifyFreight(data) {
  return request({
    url: '/xhy/admin/bill/modify/freight',
    method: 'post',
    data
  })
}
//发起对账
export function sendAmount(data) {
  return request({
    url: '/xhy/admin/bill/send/account',
    method: 'post',
    data
  })
}
//修改运杂费
export function modifyMixedFreight(data) {
  return request({
    url: '/xhy/admin/bill/modify/other/freight',
    method: 'post',
    data
  })
}
//修改运杂费时获取运杂费参数
export function getMixedParam(data) {
  return request({
    url: '/xhy/admin/task/mixed/cost',
    method: 'post',
    data
  })
}
//付款管理
export function paymentList(data) {
  return request({
    url: '/xhy/admin/taskPayment/getList',
    method: 'post',
    data
  })
}
//付款管理申请开票基础参数
export function paymentApplyParam() {
  return request({
    url: '/xhy/admin/taskPayment/paymentSearchCriteria',
    method: 'post',
  })
}
//付款管理申请开票列表
export function paymentApplyList(data) {
  return request({
    url: '/xhy/admin/taskPayment/getPaymentTask',
    method: 'post',
    data
  })
}
//付款管理申请开票和运费相关联的其它运杂费
export function paymentOtherAmount(data) {
  return request({
    url: '/xhy/admin/taskPayment/getOtherAmount',
    method: 'post',
    data
  })
}
//确认开票
export function confirmInvoice(data) {
  return request({
    url: '/xhy/admin/taskPayment/addInvoice',
    method: 'post',
    data
  })
}
//发票管理列表
export function getInvoiceList(data) {
  return request({
    url: '/xhy/admin/invoice/getList',
    method: 'post',
    data
  })
}
//发票管理基础参数
export function getInvoiceParam() {
  return request({
    url: '/xhy/admin/invoice/searchCriteria',
    method: 'post'
  })
}
//发票管理 查看
export function invoiceDetail(data) {
  return request({
    url: '/xhy/admin/invoice/detail',
    method: 'post',
    data
  })
}
//发票管理 上传发票
export function uploadInvoice(data) {
  return request({
    url: '/xhy/admin/invoice/editInvoiceFile',
    method: 'post',
    data
  })
}
//付款管理 搜索词
export function getPaymentParam(data) {
  return request({
    url: '/xhy/admin/orderPay/searchCriteria',
    method: 'post',
    data
  })
}
//付款管理 列表
export function getPaymentList(data) {
  return request({
    url: '/xhy/admin/orderPay/getList',
    method: 'post',
    data
  })
}
//付款管理 确认提现
export function confirmPay(data) {
  return request({
    url: '/xhy/admin/orderPay/confirmPay',
    method: 'post',
    data
  })
}
//收款管理 添加付款
export function addPayment(data) {
  return request({
    url: '/xhy/admin/receivePayment/addReceiveAmount',
    method: 'post',
    data
  })
}
//收款管理 收款记录
export function paymentLog(data) {
  return request({
    url: '/xhy/admin/receivePayment/paymentLog',
    method: 'post',
    data
  })
}
//收款管理 列表
export function receiveList(data) {
  return request({
    url: '/xhy/admin/receivePayment/getList',
    method: 'post',
    data
  })
}
//收款管理 搜索词
export function getReceiveParam(data) {
  return request({
    url: '/xhy/admin/receivePayment/searchCriteria',
    method: 'post',
    data
  })
}
//企业管理 搜索词
export function getGroupParam(data) {
  return request({
    url: '/xhy/admin/userGroup/searchCriteria',
    method: 'post',
    data
  })
}
//企业管理 列表
export function getGroupList(data) {
  return request({
    url: '/xhy/admin/userGroup/getList',
    method: 'post',
    data
  })
}
//企业管理 添加
export function groupAdd(data) {
  return request({
    url: '/xhy/admin/userGroup/add',
    method: 'post',
    data
  })
}
//企业管理 详情
export function groupDetail(data) {
  return request({
    url: '/xhy/admin/userGroup/detail',
    method: 'post',
    data
  })
}
//企业管理 修改
export function groupEdit(data) {
  return request({
    url: '/xhy/admin/userGroup/edit',
    method: 'post',
    data
  })
}
//企业管理 获取企业代码
export function getGroupCode() {
  return request({
    url: '/xhy/admin/account/getGroupCode',
    method: 'post',
  })
}
//企业管理 修改状态
export function editStatus(data) {
  return request({
    url: '/xhy/admin/userGroup/editStatus',
    method: 'post',
    data
  })
}
//接单人管理 基础参数
export function getTakerParam(data) {
  return request({
    url: '/xhy/admin/order/taker/param',
    method: 'post',
    data
  })
}
//接单人管理 接单人基础参数
export function takerList(data) {
  return request({
    url: '/xhy/admin/order/taker/takerList',
    method: 'post',
    data
  })
}
//接单人管理 列表
export function getTakerList(data) {
  return request({
    url: '/xhy/admin/order/taker/list',
    method: 'post',
    data
  })
}
//接单人管理 禁用/启用
export function takerEnable(data) {
  return request({
    url: '/xhy/admin/order/taker/enable',
    method: 'post',
    data
  })
}
//接单人管理 详情
export function takerDetail(data) {
  return request({
    url: '/xhy/admin/order/taker/detail',
    method: 'post',
    data
  })
}
//接单人管理 通过/驳回
export function takerChangeState(data) {
  return request({
    url: '/xhy/admin/order/taker/changeState',
    method: 'post',
    data
  })
}
//付款管理申请开票基础参数
export function getApplyParam() {
  return request({
    url: '/xhy/admin/taskPayment/searchCriteria',
    method: 'post',
  })
}
//发票管理 撤销开票
export function revokeInvoice(data) {
  return request({
    url: '/xhy/admin/invoice/revokeInvoice',
    method: 'post',
    data
  })
}
// 路线数据 xhy/admin/order/taker/city
export function getLocationData(data) {
    return request({
      url: '/xhy/admin/order/taker/city',
      method: 'post',
      data
    })
}
// 修改接口 xhy/admin/order/taker/modify
export function editModify(data) {
    return request({
      url: '/xhy/admin/order/taker/modify',
      method: 'post',
      data
    })
}
// 发票识别 xhy/admin/invoice/identify
export function identifyInfo(data) {
    return request({
      url: '/xhy/admin/invoice/identify',
      method: 'post',
      data
    })
}
// 对账管理，远程搜索接单人
export function userList(data) {
  return request({
    url: '/xhy/admin/bill/userList',
    method: 'post',
    data
  })
}
//开票记录
export function getInvoiceDetail(data) {
  return request({
    url: '/xhy/admin/taskPayment/invoiceDetail',
    method: 'post',
    data
  })
}
//车队管理人员列表
export function relationList(data) {
  return request({
    url: '/xhy/admin/order/taker/user',
    method: 'post',
    data
  })
}
export function getHistoryInvoice(data) {
  return request({
    url: '/xhy/admin/invoice/record',
    method: 'post',
    data
  })
}
//确认对账
export function confirmAccount(data) {
  return request({
    url: '/xhy/admin/bill/account',
    method: 'post',
    data
  })
}